<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="/WEB-INF/jsp/include/easyui.jsp" %>
<%@ include file="/WEB-INF/jsp/include/pForm.jsp" %>
<%@ include file="/WEB-INF/jsp/include/easyui-layui-upload.jsp" %>
<script src="/plug-in/jquery-easyui-1.5.1/plugins/jquery.choosebox.js"></script>
<title>立项管理新建页面</title>
<script>
$(function(){
	fn.resetForm({status:'${node.flowName}'});
});
</script>
</head>
<body>
	<div class="easyui-panel" title="【当前环节: 新建-流程启动】" data-options="fit:true,border:false" style="padding:10px;">
		<!-- 替换自动form表单 -->
		<form id="easyuiForm" method="post" action="/console/project/rewrite/action/${param.pid}">
		 <!--类名属性及默认主键id-->
		 <input type="hidden" name="className" value="com.fs.jzzn.pojo.Project" />
		 <input type="hidden" name="id" value="" />
		 <div style="margin-bottom:20px">
		  <input class="easyui-choosebox easyui-validatebox" name="pNo" style="width:270px;"   data-options="label:'路段编号:',boxWidth:500,boxHeight:400,boxTitle:'自动生成项目编号',textField:'pNo',valueField:'pNo',modleName:'autoPno',required:true,readonly:false "/>
		  <select class="easyui-combobox" name="pName" style="width:270px;" data-options="label:'项目名称:'" 
				url="/console/newProject/combobox?textField=pName&valueField=pName" >
		   </select>
		  <input class="easyui-textbox easyui-validatebox" name="contractNo" style="width:270px;" data-options="label:'订单编号:',validType:'length[0,45]'" />
		 </div>
		 
		  <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="pRoad" style="width:270px;" data-options="label:'工程段落:',required:true" />
		  <select class="easyui-combobox" name="pType" style="width:270px;" data-options="label:'专业类别:'" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=A2&pCode_searchType=eq" >
		   </select>
		  <input class="easyui-datebox easyui-validatebox" name="pCreateDate" style="width:270px;" data-options="label:'订单日期:'" />
		 </div>
		 
		  <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="budgetMoney" style="width:270px;" data-options="label:'立项预算:',validType:'decimals[2]'" />
		  <input class="easyui-textbox easyui-validatebox" name="actualMoney" style="width:270px;" data-options="label:'完工预算:',validType:'decimals[2]'" />
		  <input class="easyui-textbox easyui-validatebox" name="status" value="新建" style="width:270px;" data-options="label:'项目状态:'" />
		 </div>
		 
		  <div style="margin-bottom:20px">
		  	 <!-- 
		  	 <input class="easyui-textbox easyui-validatebox" name="pm" style="width:270px;" data-options="label:'项目经理:'" />
		  	 <input class="easyui-textbox easyui-validatebox" name="ppm" style="width:270px;" data-options="label:'工程经理:'" />
		  	  <input class="easyui-textbox easyui-validatebox" name="marketManager" style="width:270px;" data-options="label:'市场经理:'" />
		  	  -->
		  	   <select class="easyui-combobox" name="pm" style="width:270px;" data-options="label:'项目经理:'" 
				url="/console/user/combobox?duty=项目经理&duty_searchType=eq&textField=nickName&valueField=nickName" >
		   	 </select>
		  
		  	 <select class="easyui-combobox" name="ppm" style="width:270px;" data-options="label:'工程经理:'" 
				url="/console/user/combobox?duty=工程经理&duty_searchType=eq&textField=nickName&valueField=nickName" >
		   	 </select>
		   	 
		  	 <select class="easyui-combobox" name="marketManager" style="width:270px;" data-options="label:'市场经理:'" 
				url="/console/user/combobox?duty=市场经理&duty_searchType=eq&textField=nickName&valueField=nickName" >
		   	 </select>
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<select class="easyui-combobox" name="constructionUnit" style="width:270px;" data-options="label:'建设单位:'" 
				url="/console/combobox?valueField=name&textField=name&modleName=assistUnit&type=建设单位&type_searchType=eq" >
		 	</select>
		  	<select class="easyui-combobox" name="designUnit" style="width:270px;" data-options="label:'设计单位:'" 
				url="/console/combobox?valueField=name&textField=name&modleName=assistUnit&type=设计单位&type_searchType=eq" >
		 	</select>
		 	<select class="easyui-combobox" name="operator" style="width:270px;" data-options="label:'运营商:'" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=A3&pCode_searchType=eq" >
		   </select>
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<select class="easyui-combobox" name="subpackage" style="width:270px;" data-options="label:'是否分包:'" >
		 		<option value="是">是</option>
		 		<option value="否">否</option>
		   </select>
		   <select class="easyui-combobox" name="subpackageScale" style="width:270px;" data-options="label:'分包比例:'" 
				url="/console/combobox?valueField=dicValue&textField=dicName&modleName=dictionary&pCode=B8&pCode_searchType=eq" >
		   </select>
		 	<input class="easyui-textbox easyui-validatebox" name="url" style="width:270px;" data-options="label:'云储存:',required:true" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<select class="easyui-combobox" name="department" style="width:270px;" data-options="label:'所属项目部:'" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=A5&pCode_searchType=eq" >
		    </select>
		 	<select class="easyui-combobox" name="region" style="width:270px;" data-options="label:'区域:'" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=B5&pCode_searchType=eq" >
		    </select>
		 	<select class="easyui-combobox" name="priority" style="width:270px;" data-options="label:'优先级:'" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=B9&pCode_searchType=eq&text=中" >
		    </select>
		 </div>
		  
		  <div style="margin-bottom:20px">
		  	<input class="easyui-textbox easyui-validatebox" name="designLength" style="width:270px;" data-options="label:'设计长度:',validType:'decimals[2]'" />
		  	<select class="easyui-combobox" name="flowId" style="width:270px;" data-options="label:'流程模板:',required:false" 
				url="/console/combobox?valueField=id&textField=flowName&modleName=flow&parentId=0&parentId_searchType=eq" >
		    </select>
		    <input class="easyui-textbox easyui-validatebox" name="pfName" style="width:270px;" data-options="label:'批复名称:'" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<input class="easyui-textbox easyui-validatebox" name="remark" multiline="true" style="width:850px;height:40px;"
		 		 data-options="label:'备注:',required:false,validType:'length[0,500]'" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<input class="easyui-layuiupload" name="attachment" style="width:850px;" data-options="label:'附件:',upload:{auto:false,height:150}" />
		 </div>
		</form>
	</div>
</body>
</html>